<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link href="__TMPL__/public/assets/themes/{:cmf_get_admin_style('arcoadmin')}/bootstrap5/bootstrap.min.css"rel="stylesheet">
    <link href="__TMPL__/public/assets/css/simplebootadmin.css" rel="stylesheet">
    <link href="__TMPL__/public/assets/fontawesome/css/all.min.css" rel="stylesheet" type="text/css">
    <link href="__TMPL__/public/assets/fontawesome/css/v4-shims.min.css" rel="stylesheet" type="text/css">
    <link href="__TMPL__/public/assets/themes/{:cmf_get_admin_style('arcoadmin')}/simplebootadmin.css" rel="stylesheet">
    <php>
        $admin_id=cmf_get_current_admin_id();
        $_is_mobile=cmf_is_mobile();
        $_static_version='1.0.5';
        $cmf_version=cmf_version();
        if (preg_match("/^(8|6)\./",$cmf_version)) {
        $_app=app()->http->getName();
        }else{
        $_app=request()->module();
        }
    </php>
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "__ROOT__/",
            WEB_ROOT: "__WEB_ROOT__/",
            JS_ROOT: "static/js/",
            API_ROOT: {api: '__WEB_ROOT__/api/'},
            APP: '{$_app}'/*当前应用名*/,
            IS_MOBILE: {$_is_mobile? 'true' : 'false'},
            lang: function (langKey, params) {
                var lang = {
                    LOGIN_INVALID_TIPS: "{:lang('LOGIN_INVALID_TIPS')}",
                    'Please select at least one': "{:lang('Please select at least one')}",
                    Close: "{:lang('CLOSE')}",
                    'You sure you want to delete it?': "{:lang('You sure you want to delete it?')}",
                    'OK': "{:lang('OK')}",
                    'Are you sure you want to do this?': "{:lang('Are you sure you want to do this?')}"
                };
                return typeof lang[langKey] === 'undefined' ? langKey : lang[langKey];
            }
        };
    </script>
    <script src="__STATIC__/js/jquery-3.6.4.min.js"></script>
    <script src="__TMPL__/public/assets/js/jquery-migrate-3.4.0.min.js"></script>
    <script src="__TMPL__/public/assets/js/popper.min.js"></script>
    <script src="__TMPL__/public/assets/js/bootstrap.min.js"></script>
    <script src="__STATIC__/js/wind.js"></script>
    <script>
        Wind.alias({noty: '__STATIC__/js/noty-2.4.1.js'})
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip({
                container: 'body',
                html: true,
            });
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    <if condition="APP_DEBUG">
        <style>
            #think_page_trace_open {
                z-index: 9999;
            }
        </style>
    </if>
    <block name="head"></block>
</head>
<body class="{$_is_mobile?'mobile':''}">
<block name="main"></block>
<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
<block name="scripts"></block>
</body>
</html>
